<!--{include(pe_tpl('header_dialog.html'));}-->
<!--startprint1-->
<div id="printhtml">
	<!--{foreach($info_list as $k=>$v):}-->
	<!--{$product_list  = $db->pe_selectall('orderdata', array('order_id'=>$v['order_id']))}-->
	<!--{$order_num = 0}-->
	<div style="text-align:center;font-size:20px;margin:20px 0 30px">{$cache_setting['web_title']}发货单</div>
	<div>订单编号：{$v['order_id']}</div>
	<div>下单时间：{pe_date($v['order_atime'])}</div>
	<div>客户姓名：{$v['user_tname']}</div>
	<div>电话号码：{$v['user_phone']}</div>
    <div>收货地址：{$v['user_address']}</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<!--<th style="width:10%;">序号</th>-->
		<th>商品名称</th>
		<!--<th style="width:20%;">规格</th>-->
		<th style="width:15%;">单价</th>
		<th style="width:15%;">数量</th>
		<!--<th style="width:10%;">小计</th>-->
	</tr>
	<!--{foreach($product_list as $kk=>$vv):}-->
	<!--{$order_num += $vv['product_num']}-->	
	<tr>
		<!--<td>{$kk+1}</td>-->
		<td style="text-align:left;">{$vv['product_name']}<!--{if($vv['product_rule']):}-->【{order_skushow($vv['product_rule'])}】<!--{endif;}--></td>
		<!--<td style="text-align:left;">{order_skushow($vv['product_rule'])}</td>-->
		<td>{$vv['product_money']}元</td>
		<td>{$vv['product_num']}件</td>
		<!--<td>{$vv['product_allmoney']}元</td>-->
	</tr>
	<!--{endforeach;}-->
	<tr>
		<td style="text-align:right;padding-right:10px" colspan="6">合计：{$v['order_money']} 元 / {$order_num}件</td>
	</tr>
	</table>
	<div>买家留言：{$v['order_text']}</div>
	<div>卖家备注：{$v['order_remark']}</div>
    <div style="clear:both"></div>
	<!--{endforeach;}-->
</div>
<!--endprint1-->
<a href="javascript:printhtml(1);" class="print_btn">打印发货单 >></a>
<script type="text/javascript" src="{$pe['host']}include/js/jquery.printarea.js"></script>
<script type="text/javascript">
function printhtml(num) {  
	if (num < 10) {
		html = window.document.body.innerHTML;//获取当前页的html代码  
		sprnstr = "<!--startprint"+num+"-->";//设置打印开始区域  
		eprnstr = "<!--endprint"+num+"-->";//设置打印结束区域  
		prnhtml = html.substring(html.indexOf(sprnstr)+18); //从开始代码向后取html  
		prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));//从结束代码向前取html  
		window.document.body.innerHTML = prnhtml;  
		window.print();  
		window.document.body.innerHTML = html;  
	}
	else {
		window.print();  
	} 
}  
</script>
<style type="text/css">
body{color:#000; padding-bottom:50px !important; font-size:12px; line-height:30px;}
table{width:100%; margin:10px 0;}
table td, table th{padding:5px; border:1px #000 solid; text-align:center}
.print_btn{position:fixed; display:block; bottom:0; left:0; height:45px; line-height:40px; width:100%; color:#fff; background:#ffa500; text-align:center; font-weight:bold; font-size:14px; z-index:1}
.print_btn:hover{color:#fff}
@media print{
	.print_btn {display:none}
} 
</style>
<!--{include(pe_tpl('footer_dialog.html'));}-->